package model.vo
{
    public class GameVo
    {
        public static const GAME_STATE_PREPARING:int = 1;
        public static const GAME_STATE_RUNNING:int = 2;
        public static const GAME_STATE_RESULTING:int = 3;
        public static const MAX_LEVEL:int = 5;

        public var state:int;
        public var level:int;
        public var eggs:int;
        public var win:int;
        public var score:int;

        public var userName:String;
        public var balance:Number;

        public function GameVo()
        {
            userName = "Rockie";
            balance = 5000;
            state = GAME_STATE_PREPARING;
            level = 5;
            eggs = 0;
            win = 0;
            score = 0;

        }

        public function reset():void
        {
            eggs = 0;
            win = 0;
            score = 0;
        }

        public function start():void
        {
            balance -= 5;
            state = GAME_STATE_RUNNING;
        }
    }
}

